home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / unix-faq.user-friendly < prev    next >
Encoding:
Internet Message Format  |  1994-04-06  |  16.4 KB

  1. Subject: comp.unix.user-friendly Frequently Asked Questions (FAQ)
  2. Newsgroups: comp.unix.user-friendly,comp.answers,news.answers
  3. From: cuuf@wfu.edu
  4. Date: 5 Apr 1994 10:59:05 GMT
  5.  
  6. Archive-name: unix-faq/user-friendly
  7.  
  8. FAQ (Frequently-asked Questions) for comp.unix.user-friendly
  9. ============================================================================
  10.  
  11. Last modified: Mar. 7, 1994
  12.  
  13. This FAQ is automatically posted on the 5th and 20th of each month. The
  14. latest version of the FAQ is available in the following ways: 
  15.  
  16. anonymous ftp and fsp to ftp.wfu.edu /pub/usenet/cuuf-FAQ
  17. gopher to gopher.wfu.edu port 70 /Wake Forest Information/Computer information
  18.                                  /Usenet News information maintained by Wake...
  19.  
  20. THE PURPOSE OF THIS FAQ is to archive "Frequently Asked Questions", and by
  21. so doing, to improve the quality of the newsgroup discussion by reducing
  22. redundant questions.  The FAQ also serves as a reference to new readers,
  23. providing one resource which will answer many of their questions. It does
  24. not matter if a FAQ is necessarily appropriate to the group's charter-- if
  25. it appears frequently, its inclusion in the FAQ will reduce the frequency. 
  26.  
  27. Since this is a new newsgroup, there currently are very few FAQ's. If
  28. users consider a topic worth incorporating into this FAQ, they are
  29. encouraged to compile and email any FAQs to cuuf@wfu.edu FAQs should try
  30. to roughly incorporate which category(ies) of users the FAQ applies to (if
  31. applicable) i.e., novice, casual, expert, etc.  If you do NOT want your
  32. name credited with the FAQ, please say so. 
  33.  
  34. The FAQ is maintained by Noel Hunter <noel@wfu.edu> and
  35. Lachlan Cranswick <lachlan@dmp.csiro.au>
  36.  
  37. ============================================================================
  38. Contents
  39. ===========================================================================
  40. 1. Novice (General questions about Unix and this newsgroup)
  41.     1.1 Why did the people who wrote Unix use different commands from
  42.             MS-DOS; why does Unix use funny abbreviations for commands, etc?
  43.         1.2 What books are available for learning Unix?
  44.         1.3 What are some basic commands and concepts for new users?
  45.     1.4 What Internet resources are available for learning Unix?
  46.  
  47. 2. Casual (Now we're getting into "User Friendly")
  48.     2.1 What shells are friendliest, and how can one make shells
  49.     friendlier?
  50.  
  51. 3. Expert
  52.     3.1 What on-line documentation / help systems are available free
  53.             on the Internet
  54.  
  55. ===========================================================================
  56. 1. NOVICE QUESTIONS
  57. ===========================================================================
  58.  
  59. Subject: 1.1 Why did the people who wrote Unix use different commands from
  60.              MS-DOS; why does Unix use funny abbreviations for commands, etc?
  61.  
  62. This question, and questions of a general Unix nature are not appropriate
  63. for this newsgroup.  Direct them to comp.unix.questions or other 
  64. comp.unix groups.  However, since these questions do occur frequently, 
  65. here is a brief summary of responses:
  66.  
  67. Submitted by Randolph J. Herber, paraphrased here:
  68.  
  69. Unix was written before MS-DOS, which is a distant relative, tracing some
  70. of its roots to Unix, but also incorporating other influences.  According
  71. to _The Bell System Technical Journal_ (Vol. 57, No. 6, July-August, 1978
  72. ``Forward''), "The UNIX story begins with Ken Thompson's work on a
  73. cast-off PDP-7 minicomputer in 1969." According to _The MS-DOS
  74. Encyclopedia_ (Microsoft Press), page 19, MS-DOS "ran on the prototype for
  75. the first time in 1981."
  76.  
  77. As the XENIX operating system is a spin-off from the UNIX operating
  78. system, it is clear that MS-DOS itself could be called a distant spin-off
  79. of the UNIX operating system. 
  80.  
  81. Primary causes of the abbreviations were the 10 characters per
  82. second terminal speeds and the small system memories (e.g. 128KB).
  83.  
  84. ===========================================================================
  85.  
  86. Subject: 1.2 What books are available for learning Unix?
  87.  
  88. This question also is not appropriate to this newsgroup, but is frequently
  89. asked. See the newsgroup misc.books.technical instead.  Here is a summary 
  90. of resources:
  91.  
  92. A Concise Guide to UNIX Books
  93. Compiled by: Samuel Ko (kko@sfu.ca, sko@wimsey.bc.ca)
  94.  
  95. This is a good selection of the "best" books and documentation on
  96. UNIX and related areas.  The selection is based on i) recommendations
  97. from netnews readers, ii) the US/Canada sales figures, and iii) a bit
  98. of my own preference.
  99.  
  100. Among the subject areas covered:
  101.    A. General Unix Texts
  102.       a.  for beginning / intermediate users
  103.       b.  for intermediate / advanced users
  104.    B. Shells
  105.    C. Unix Editors
  106.    L. Other Lists
  107.    M. Other Books (experimental)
  108.  
  109. The latest version is also obtainable by anonymous ftp from rtfm.mit.edu
  110. (in /pub/usenet/news.answers/books). If you do not have ftp or netnews
  111. access you can get it by email from mail-server@rtfm.mit.edu and the body
  112. of your request should be send usenet/news.answers/books/unix. 
  113.  
  114. ===========================================================================
  115.  
  116. Subject: 1.3 What are some basic commands and concepts for new users?
  117.  
  118. Another novice question which should be directed to the newsgroup 
  119. comp.unix.questions.  But novices can't know these things, so we should 
  120. help them at least briefly:
  121.  
  122. Basic commands and concepts, originally submitted by haley@husc.harvard.edu.
  123.  
  124. Unix is an operating system, similar to MS-DOS, only much more powerful.
  125. Some versions have over 300 commands in the basic system, not including
  126. specialized applications. 
  127.  
  128. Command Primer
  129. -------------- 
  130. These commands are meant for use in a program called a "shell", which is
  131. the user interface to the underlying programs that make up Unix. There are
  132. several different shells which are widely used, so the prompts you see on
  133. your screen, and the responses you see may vary slightly.  However, the
  134. commands here should work in all of the shells. Note that users with
  135. Graphical User Interfaces (X Windows, Openview, etc) may have to use the
  136. "shelltool" or "command window" to use these commands. 
  137.  
  138. When you enter Unix commands, you will usually enter two or three words: 
  139. the "command" itself, "modifier(s)" which change the way the command
  140. works, and "aruguamt(s)" which provide the command with additional
  141. information.  Each word in the command is separated by a space, and
  142. modifiers are preceded by a hyphen (-).  Here is an example of the "ls"
  143. command with a modified and argument: 
  144.  
  145. Example:   command  modifier argument
  146.            |        |        |
  147.            ls       -CF      newdir
  148.  
  149. Typing this command will print a directory listing on your screen of the
  150. directory "newdir".  The modifiers "-CF" tell the ls command to list other
  151. directories listed with a / after them, and to list programs with a * after 
  152. them, and logical links with a @ after them. 
  153.  
  154. The unix system uses a "hierarchical directory structure; to store files
  155. on its disks.  This type of structure is like an upside-down tree, with
  156. one "root" directory (like the root and trunk of a tree), and many
  157. sub-directories (like branches) to store files in. Here is a small example
  158. of what one might look like: 
  159.  
  160.              _______________(/)______________________________
  161.             /      /           \       \                     \
  162.           bin     lib           etc     home_____________     usr
  163.                  /                     /        \        \
  164.                 sys              headcheese      \        headcheese3
  165.                                                   \
  166.                                                    headcheese2
  167.                                                   /
  168.                                            student
  169.                                           /
  170.                                      yourdir
  171.  
  172. The directories you must go through to find a particular file in "yourdir"
  173. are "/" then "home" then "headcheese2" then "student" then "yourdir". In
  174. Unix you call the directories you must go through to acces a file the
  175. "path", and you type in the above path like this: 
  176.  
  177. /home/headcheese2/student/yourdir/filename
  178.  
  179. We call this "filename"'s "full path". The first "/" must be there for it
  180. to be a full path. If you leave it off then the shell will assume it is a
  181. "relative path" and look for the path to start in the directory you are
  182. currently in, called the "current working directory". This is useful, as
  183. always having to refer to files by their full path would get tedious. If
  184. you were in "student" and wanted to refer to "filename" in "yourdir" you
  185. could call it:
  186.  
  187. yourdir/filename
  188.  
  189. Or, if you are already in "yourdir", just
  190.  
  191. filename
  192.  
  193. O.K. That ought to be enough to get you interested and started...
  194. Note to MS-DOS users: Unix has a hierarchical directory structure,
  195. like MS-DOS, but uses a / to separate parts of a file path instead of
  196. a \ (Back-slash).
  197.  
  198. Playing around
  199. --------------
  200. After you understand these things, the thing to do is *PLAY*. Look around
  201. in the directories which store commands, and when you see something, do a
  202. "man" on it. When you think you want to know more, a trip to a math
  203. library is in order, or maybe a good bookstore. A good publisher is
  204. O'reilly (Nutshell). Addison Wesley is also good, but I think they are
  205. better for advanced stuff. 
  206.  
  207. Directories to look in: /bin /usr/bin /usr/local /usr/local/bin and just
  208. about any other "*bin" directory. 
  209.  
  210. Note that this method is not time efficient at first. It is however MUCH
  211. better for retention. I went from knowing nothing about Unix to having the
  212. professor who got me started asking *me* for advice. 
  213.  
  214. There is a small hand-full of commands that you will use many times, and 
  215. here they are...
  216.  
  217. man    Print out a manual page    on the screen.  If you know the name of a 
  218. command, you can read the manual by typing "man command".  For example, 
  219. typing "man ls" will display the manual for the ls command.  If you want 
  220. to search all of the man pages for a certain word (on some systems), you 
  221. can type "man -k word".  For example, typing "man -k mail" would list 
  222. the names of all of the man pages pertaining to mail.
  223.                                 man intro
  224. passwd    Change your account password. This should be done the first time 
  225. you log on, especially if you have no password. You must know your old
  226. password to change it.  To change you password, type "passwd".  Then enter
  227. your old (current) password, and the desired new password (twice).  Note 
  228. that your passwords will NOT appear on the screen as you type them.
  229.  
  230. ls    List the contents of a directory.  Typing "ls" alone will list 
  231. the contents of the current working directory.  If you want to see a 
  232. specific directory, you can type "ls directoryname".  For example,
  233. "ls /pub" will list the contents of the /pub directory (if there is 
  234. one one your system).  Adding "-CF" options will give you a more 
  235. detailed listing in columns, marking directories with a /, executable 
  236. files with a *, and logical links with a @.  For example, typing "ls -CF"
  237. will give a detailed listing of the current directory.
  238.  
  239. mkdir    Make a new directory as a sub-directory of where you are now.    
  240. For example, "mkdir work" will create a sub-directory named "work" in 
  241. your current directory.
  242.  
  243. cd    Change directory. Used to go up or down in the directory tree.
  244. For example, to change to a sub-directory named "work" in the current 
  245. directory, type "cd work".  Typing "cd .." will change to the parent 
  246. directory, the directory one level above the current directory.
  247.  
  248. vi     Invoke the vi editor. This is a screen editor, that is, a text editor
  249. that makes use of the full screen. You must know this or another editor to
  250. make use of "elm".  For those who use one of the windowing systems
  251. exclusively, you can put off learning this as the windowing systems have
  252. adifferent e-mail system.
  253.  
  254. rm    Remove a file. (note: this is forever! Think before you erase)
  255. For example, to remove a file named "foo", type "rm foo".  Adding the 
  256. "-r" option allows you to delete an entire sub-directory and ALL files 
  257. and directories beneath it.  BE CAREFUL!  For example, to delete a 
  258. directory named "work", and all files and sub-directories in "work", type 
  259. "rm -rf work".
  260.  
  261. elm    Invoke the elm mail program.  Note: must know an editor
  262. first.    
  263.  
  264. ===========================================================================
  265. Subject: 1.4 What Internet resources are available for learning Unix?
  266.  
  267. Submitted by: Jean-Marc Bonnaudet
  268.  
  269. The Unix-faq is posted to the newgroups: 
  270. comp.unix.questions,comp.unix.shell,news.answers, comp.answers.
  271.  
  272.  
  273. ===========================================================================
  274. 2. CASUAL QUESTIONS
  275. ===========================================================================
  276.  
  277. Subject: 2.1 What shells are friendliest, and how can one make shells 
  278. friendlier?
  279.  
  280. bash
  281. ----
  282. Bash is an sh-compatible command language interpreter that executes
  283. commands read from the standard input or from a file.  Bash also
  284. incorporates useful features from the Korn and C shells (ksh and csh).
  285.  
  286. Bash is ultimately intended to be a faithful implementation of the
  287. IEEE Posix Shell and Tools specification (IEEE Working Group 1003.2).
  288.  
  289. Bash is available from GNU sites, such as jaguar.cs.utah.edu:gnustuff
  290.  
  291. tcsh
  292. ----
  293. is an enhanced version of the Berkeley UNIX C shell csh.  It behaves
  294. exactly like the C  shell, with added utilities of:
  295.  
  296. 1) Command line editing using vi or Emacs commands, allowing you to
  297.    correct errors in the current input line, or in previously input lines,
  298.    much more easily than with sh or csh.
  299. 2) Visual step up/down through the history list, letting you recall
  300.    previously typed lines by simply pressing the up arrow key.
  301. 3) Terminal mode sanity checking and resetting, which helps reduce
  302.    problems for users who frequently switch between various types of
  303.    terminals.
  304. 4) Interactive command, file name and user name completion, allowing you
  305.    to type the first few characters of a command, user name, or file name,
  306.    then press the TAB key to automatically complete the word.
  307. 5) File, directory, and user list display in the middle of a typed
  308.    command.
  309. 6) Interactive spelling correction of command, file, and user names.
  310. 7) Lookup of command documentation in the middle of a typed command. 
  311. 8) Enhanced history mechanism for recalling previous commands.
  312. 9) Automatic locking or logout after long periods of idle time.
  313.  
  314. tcsh is available via anonymous ftp from tesla.ee.cornell.edu, among other
  315. places.
  316.  
  317. zsh
  318. ---
  319. (paraphrased from the zsh faq, posted to comp.answers monthly)
  320. zsh is a UNIX command interpreter (shell) which of the standard shells
  321. most resembles the Korn shell (ksh), although it is not completely
  322. compatible.  It includes enhancements of many types, notably in the
  323. command-line editor, options for customising its behaviour, filename
  324. globbing, features to make C-shell (csh) users feel more at home and
  325. extra features drawn from tcsh (another `custom' shell).
  326.  
  327. zsh is available for users east of the Atlantic from:
  328.   carlo.phys.uva.nl(145.18.218.21):/pub/bas/zsh/zsh-2.4beta.tar.gz
  329. The latest full release is in zsh-2.3.1.tar.gz in the same directory.
  330. and
  331.   ftp.sterling.com (192.124.9.1):/zsh
  332.  
  333. The 2.3.1 distribution is also available from ftp.uu.net and mirrors
  334. in the directory pub/shells/zsh.
  335.  
  336. ===========================================================================
  337. 3. EXPERT QUESTIONS
  338. ===========================================================================
  339.  
  340. Subject: 3.1 What on-line documentation / help systems are available free
  341.             on the Internet
  342.  
  343. Submitted by Chris Siebenmann <cks@hawkwind.utcs.toronto.edu>, edited.
  344.  
  345. TkMan
  346. ----- 
  347. an X-based manual page viewer and browser. Far superior to
  348. xman; I think it's the current best approach to man page presentation.
  349. Available via anonymous ftp from ftp.cs.berkeley.edu:
  350. /pub/mhgs/tkman-1.5.tar.Z
  351.  
  352. TkInfo
  353. ------
  354. an X-based hypertext interface to the GNU texinfo .info file format.
  355.  
  356. World Wide Web (WWW), Mosaic and Lynx
  357. -------------------------------------
  358. HTML looks like the leading candidate for formatted and annotated text at
  359. the moment, so even if WWW dies, an investment in HTML-based tools will
  360. probably continue to be useful.  Word Perfect, BBEdit, and other vendors
  361. are beginning to support HTML editing. 
  362.  
  363. Gopher
  364. ------
  365. seems to be the low-rent ASCII-based information delivery system of
  366. choice, but I'm not sure it's the right choice. For one thing, one has to
  367. fight menus to find things, which makes it reliant on the skill of the
  368. person who set them up. Combining gopher with WAIS for searching can
  369. create a more effective documentation system. 
  370. --
  371. * Noel Hunter,  Academic Systems Administrator,    Wake Forest University *
  372. * email: noel@wfu.edu         http://www.wfu.edu/users/staff/Noel-Hunter/ *
  373. * tel:910-759-5812 fax:910-759-6074 home:910-725-6570 mobile:910-418-8286 *
  374.  
  375.